<template>
	<view>
		<view class="empty_car" v-show="orderList.length == 0">
			<u-empty text="购物车空空如也" mode="car"></u-empty>
			<u-button type="error" size="mini" @click="goToIndex">逛一逛</u-button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			orderList: []
		};
	},
	methods: {
		goToIndex() {
			uni.switchTab({
				url: '../index/index'
			})
		}
	}
};
</script>

<style lang="scss">
.empty_car {
	position: relative;
	margin-top: 50%;
	margin-bottom: 30upx;
	text-align: center;
}
</style>
